/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import javafx.beans.property.SimpleStringProperty;
import model.CommissionWare;

/**
 *
 * @author Hans
 */
public class CommissionWareLine {

    private CommissionWare ware;
    private final SimpleStringProperty name;
    private final SimpleStringProperty sellerName;
    private final SimpleStringProperty price;
    private final SimpleStringProperty dateIn;
    private final SimpleStringProperty dateOut;

    public CommissionWareLine(CommissionWare ware) {
        this.dateOut = new SimpleStringProperty();
        this.dateIn = new SimpleStringProperty();
        this.price = new SimpleStringProperty();
        this.sellerName = new SimpleStringProperty();
        this.name = new SimpleStringProperty();
        this.ware = ware;
    }

    public CommissionWareLine(String name, String sellerName, String price, String dateIn, String dateOut) {
        this.dateOut = new SimpleStringProperty();
        this.dateIn = new SimpleStringProperty();
        this.price = new SimpleStringProperty();
        this.sellerName = new SimpleStringProperty();
        this.name = new SimpleStringProperty();
        this.name.set(name);
        this.sellerName.set(sellerName);
        this.price.set(price);
        this.dateIn.set(dateIn);
        this.dateOut.set(dateOut);
    }

    public CommissionWare getWare() {
        return ware;
    }

    public void setWare(CommissionWare ware) {
        this.ware = ware;
    }

    public String getName() {
        return name.get();
    }

    public void setName(String name) {
        this.name.set(name);
    }

    public String getSellerName() {
        return sellerName.get();
    }

    public void setSellerName(String sellerName) {
        this.sellerName.set(sellerName);
    }

    public String getPrice() {
        return price.get();
    }

    public void setPrice(String price) {
        this.price.set(price);
    }

    public String getDateIn() {
        return dateIn.get();
    }

    public void setDateIn(String dateIn) {
        this.dateIn.set(dateIn);
    }

    public String getDateOut() {
        return dateOut.get();
    }

    public void setDateOut(String dateOut) {
        this.dateOut.set(dateOut);
    }
}
